/** 数据操作对象：格式{type: 操作类型, data: 操作数据} */
import {
  COUNTER_INCREMENT,
  COUNTER_DECREMENT
} from './counterType'

// 增加数据
export const addCounterAction = data => ({ type: COUNTER_INCREMENT, data })
// 减少数据
export const subCounterAction = data => ({ type: COUNTER_DECREMENT, data })
